/// Author: QP
/// Version: 1.0
/// Date:2021/08
/// 互联互通文档头子表 - 就诊场景子表 - 病床、病房、病区与科室子表
Class HCC.SQL.Document.Header.EncompassingEncounter.Location Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ DependsOn = HCC.SQL.Base ]
{

/// 病床标识
Property bedId As %String [ SqlFieldName = bed_id ];

/// 病床号
Property bedNum As WS.DE.DE010002600 [ SqlFieldName = bed_num ];

/// 病房标识
Property wardId As %String [ SqlFieldName = ward_id ];

/// 病房号
Property wardName As WS.DE.DE010001900 [ SqlFieldName = ward_name ];

/// 病区标识
Property areaId As %String [ SqlFieldName = area_id ];

/// 病区名称
Property areaName As WS.DE.DE081005400 [ SqlFieldName = area_name ];

/// 科室标识
Property deptId As %String [ SqlFieldName = dept_id ];

/// 科室名称
Property deptName As WS.DE.DE081002600 [ Required, SqlFieldName = dept_name ];

/// 医院标识
Property hosId As WS.DE.DE081005200 [ SqlFieldName = hos_id ];

/// 医院名称
Property hosName As WS.DE.DE081001300 [ SqlFieldName = hos_name ];

/// 文档编号
Relationship Encounter As HCC.SQL.Document.Header.EncompassingEncounter [ Cardinality = parent, Inverse = Locations, SqlFieldName = DocumentNo ];


}
